<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>Hello MUI</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<link rel="stylesheet" href="../css/mui.min.css">
		<script src="../js/mui.min.js"></script>
		<script src="../js/app.js"></script>
		<style>
			html,body {
				background-color: #efeff4;
			}
			header.mui-bar{
				display: none;
			}
			.mui-bar-nav~.mui-content{
				padding: 0;
			}
		</style>
		<script>
			mui.init();
		</script>
	</head>

	<body>

<style>
	/**grid 自适应代码**/
	html, body, .mui-content {
		height: 100%;
	}
	.mui-content > .mui-table-view:first-child {
		margin-top: 0px;
	}
	.mui-content {
		position: relative;
	}
	.mui-grid-view {
		position: absolute;
		top: 184px;
		bottom: 0;
		min-height: 330px;
	}
	.mui-table-view.mui-grid-view .mui-table-view-cell {
		height: 33.33333333%;
	}

	.mui-table-view.mui-grid-view .mui-table-view-cell > a:not(.mui-btn) {
		position: absolute;
		top: 50%;
		margin-top: -50px;
		left: 50%;
		margin-left: -40px;
	}
</style>
<header class="mui-bar mui-bar-nav">
	<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
	<h1 class="mui-title">自适应9宫图</h1>
</header>
<div class="mui-content">
	<div style="height:140px;width:100%;background-image:url(../images/muwu.jpg);background-position:center center;"></div>
	<ul class="mui-table-view mui-grid-view mui-grid-9">
		<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
			<a href="#">
				<span class="mui-icon mui-icon-home"></span>
				<div class="mui-media-body">
					Home
				</div>
			</a>
		</li>
		<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
			<a href="#">
				<span class="mui-icon mui-icon-email"><span class="mui-badge">5</span></span>
				<div class="mui-media-body">
					Email
				</div>
			</a>
		</li>
		<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
			<a href="#">
				<span class="mui-icon mui-icon-contact"></span>
				<div class="mui-media-body">
					Contact
				</div>
			</a>
		</li>
		<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
			<a href="#">
				<span class="mui-icon mui-icon-chat"></span>
				<div class="mui-media-body">
					Chat
				</div>
			</a>
		</li>
		<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
			<a href="#">
				<span class="mui-icon mui-icon-list"></span>
				<div class="mui-media-body">
					Sort
				</div>
			</a>
		</li>
		<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
			<a href="#">
				<span class="mui-icon mui-icon-map"></span>
				<div class="mui-media-body">
					Map
				</div>
			</a>
		</li>
		<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
			<a href="#">
				<span class="mui-icon mui-icon-search"></span>
				<div class="mui-media-body">
					Search
				</div>
			</a>
		</li>
		<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
			<a href="#">
				<span class="mui-icon mui-icon-phone"></span>
				<div class="mui-media-body">
					Phone
				</div>
			</a>
		</li>
		<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
			<a href="#">
				<span class="mui-icon mui-icon-gear"></span>
				<div class="mui-media-body">
					Setting
				</div>
			</a>
		</li>
	</ul>

</div>

</body>

</html>